import request from "@/utils/request.js";

// 查询分类品牌列表
export function listBrand(query) {
    return request({
        url: "/product/brand/list",
        method: "GET",
        params: query
    })
}

// 新增品牌
export function addBrand(data) {
    return request({
        url: "/product/brand",
        method: "POST",
        data: data
    })
}

// 查询品牌详细
export function getBrand(id) {
    return request({
        url: "/product/brand/" + id,
        method: "GET"
    })
}

// 修改品牌
export function updateBrand(data) {
    return request({
        url: "/product/brand",
        method: "PUT",
        data: data
    })
}

// 删除品牌
export function deleteBrand(id) {
    return request({
        url: "/product/brand/" + id,
        method: "DELETE"
    })
}

export function getBrandAll() {
    return request({
        url: "/product/brand/getBrandAll",
        method: "GET"
    })
}